﻿using System;

class ArraysComparison
{
    static void Main()
    {
        Console.Write("Enter the array length: ");

        int n = int.Parse(Console.ReadLine());
        string[] firstArray = new string[n];
        string[] secondArray = new string[n];

        Console.WriteLine("\nEnter values for the first array:");

        for (int i = 0; i < n; i++)
        {
            Console.Write("[{0}] = ", i);
            firstArray[i] = Console.ReadLine();
        }

        Console.WriteLine("\nEnter values for the second array:");

        for (int i = 0; i < n; i++)
        {
            Console.Write("[{0}] = ", i);
            secondArray[i] = Console.ReadLine();
        }

        bool equalArrays = true;

        for (int i = 0; i < n; i++)
        {
            if (firstArray[i] != secondArray[i])
            {
                equalArrays = false;
                break;
            }
        }

        if (equalArrays)
        {
            Console.WriteLine("\nThe arrays are equal!");
        }
        else
        {
            Console.WriteLine("\nThe arrays are not equal!");
        }
    }
}